package com.ssy.lingxi.product.api.hystrix;

import com.ssy.lingxi.common.exception.BusinessException;
import com.ssy.lingxi.common.model.vo.SelectVO;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.product.api.feign.IGoodsPriceFeign;
import com.ssy.lingxi.product.api.feign.ISelectProductFeign;
import com.ssy.lingxi.product.api.model.request.price.ContractPriceRequest;
import com.ssy.lingxi.product.api.model.request.price.OrderPriceRequest;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.List;

/**
 * 物料信息管理熔断服务实现类
 * @author lxc
 * @version 2.0.0
 * @date 2022/4/2
 */
@Component
@Qualifier("goodsPriceHystrix")
public class GoodsPriceHystrix implements IGoodsPriceFeign {

    @Override
    public Wrapper<Void> changeContractGoodsPrice(@Valid ContractPriceRequest request) {
        throw new BusinessException(ResponseCode.SERVICE_PRODUCT_ERROR);
    }

    @Override
    public Wrapper<Void> changeOrderGoodsPrice(@Valid OrderPriceRequest request) {
        throw new BusinessException(ResponseCode.SERVICE_PRODUCT_ERROR);
    }
}
